#include<iostream>
#include<cstdio>
int main()
{
    //向标准输出打印
    const char* msg = "hello stdout";
    std::cout<<msg<<std::endl;
    fprintf(stdout, "%s\n", msg);

    //向标准错误打印
    const char* msg1 = "hello stderr";
    std::cerr<<msg1<<std::endl;
    fprintf(stderr, "%s\n", msg1);
    return 0;
}
